package com.eling.elcms.travel.service.impl;

import com.eling.elcms.core.model.BaseModel;
import com.eling.elcms.core.util.PropertyUtils;
import com.eling.elcms.travel.model.FlowStatus;
import com.eling.elcms.travel.model.SendMsgTpye;
import com.eling.elcms.travel.service.ICallbackService;
import org.springframework.stereotype.Component;

@Component
public class DefaultCallBackServiceImpl implements ICallbackService {
	@Override
	public <T extends BaseModel> T setFlowStatus(T model,FlowStatus flowstatus) {
		PropertyUtils.setProperty(model, "flowStatus", flowstatus);
		return model;
	}

	@Override
	public String  getMsgTitle(BaseModel model,SendMsgTpye pass){
		return "";
	}

}
